
export default () => {
    return {
        name: 'html-transform',
        transformIndexHtml(html, ctx) {
            return {
                html,
                tags: [
                    {
                        tag: 'link',
                        attrs: {
                            src: './inject.js'
                        },
                        injectTo: 'head'
                    },
                    {
                        tag: 'link',
                        attrs: {
                            rel: 'stylesheet',
                            href: './index.css'
                        },
                        injectTo: 'head'
                    }
                ]
            }
        }
    }
}
